function openSUB(URL,OPTION,WIDTH,HEIGHT){

var param = new Array();
if ((WIDTH > 0) && (HEIGHT > 0)){
param[0] = 'width=' + WIDTH;
param[1] = 'height=' + HEIGHT;
}
if (OPTION == 0){
param[2] = 'status=1,scrollbars=1,scroll=auto,resizable=1'
}
else if (OPTION == 1){
param[2] = 'status=1,scrollbars=0,scroll=auto,resizable=0'
}
else if (OPTION == 2){
param[2] = 'status=1,scrollbars=0,scroll=auto,resizable=1'
}
else if (OPTION == 3){
param[2] = 'status=1,scrollbars=1,scroll=auto,resizable=0'
}
else if (OPTION == 4){
param[2] = 'status=0,scrollbars=1,scroll=auto,resizable=1'
}
else if (OPTION == 5){
param[2] = 'status=0,scrollbars=0,scroll=auto,resizable=0'
}

window.open(URL,'subWin',param.join(','));
}


function openSUB(URL,OPTION,WIDTH,HEIGHT,LEFT,TOP){
var param = new Array();

if ((WIDTH > 0) && (HEIGHT > 0)){
param[0] = 'width=' + WIDTH;
param[1] = 'height=' + HEIGHT;
}
if (OPTION == 0){
param[2] = 'status=1,scrollbars=1,scroll=auto,resizable=1'
}
else if (OPTION == 1){

param[2] = 'status=1,scrollbars=0,scroll=auto,resizable=0'
}
else if (OPTION == 2){

param[2] = 'status=1,scrollbars=0,scroll=auto,resizable=1'
}
else if (OPTION == 3){
param[2] = 'status=1,scrollbars=1,scroll=auto,resizable=0'
}
else if (OPTION == 4){

param[2] = 'status=0,scrollbars=1,scroll=auto,resizable=1'
}
param[3] = 'left=' + LEFT;
param[4] = 'top=' + TOP;

window.open(URL,'subWin',param.join(','));
}

function openSUB2(URL,OPTION,WIDTH,HEIGHT){

var param = new Array();
if ((WIDTH > 0) && (HEIGHT > 0)){
param[0] = 'width=' + WIDTH;
param[1] = 'height=' + HEIGHT;
}
if (OPTION == 0){
param[2] = 'status=1,scrollbars=1,resizable=1'
}
else if (OPTION == 1){
param[2] = 'status=1,scrollbars=0,resizable=0'
}
else if (OPTION == 2){
param[2] = 'status=1,scrollbars=0,resizable=1'
}
else if (OPTION == 3){
param[2] = 'status=1,scrollbars=1,resizable=0'
}
else if (OPTION == 4){
param[2] = 'status=0,scrollbars=1,resizable=1'
}
else if (OPTION == 5){
param[2] = 'status=0,scrollbars=0,resizable=0'
}

window.open(URL,'sub2Win',param.join(','));
}


function openSUB2(URL,OPTION,WIDTH,HEIGHT,LEFT,TOP){
var param = new Array();

if ((WIDTH > 0) && (HEIGHT > 0)){
param[0] = 'width=' + WIDTH;
param[1] = 'height=' + HEIGHT;
}
if (OPTION == 0){
param[2] = 'status=1,scrollbars=1,resizable=1'
}
else if (OPTION == 1){

param[2] = 'status=1,scrollbars=0,resizable=0'
}
else if (OPTION == 2){

param[2] = 'status=1,scrollbars=0,resizable=1'
}
else if (OPTION == 3){
param[2] = 'status=1,scrollbars=1,resizable=0'
}
else if (OPTION == 4){

param[2] = 'status=0,scrollbars=1,resizable=1'
}
param[3] = 'left=' + LEFT;
param[4] = 'top=' + TOP;

window.open(URL,'sub2Min',param.join(','));
}
